﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using ImageProcessor;

namespace Halftone
{
    public class BmpHelper
    {
        public Bitmap GetSmallPixels(Bitmap bitmap,int l)
        {
            for (int i = 0; i < bitmap.Height; i++)
            {
                for (int j = 0; j < bitmap.Width; j++)
                {
                    if (i % 3 == 1 && j % 3 == 1)
                    {
                        bitmap.SetPixel(j,i,bitmap.GetPixel(j,i));
                    }
                    else
                    {
                        bitmap.SetPixel(j,i,Color.White);
                    }
                }
            }
            return bitmap;
        }

       
    }
}
